package xiegd.com.springbootuse.demo.lazy;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @Author: xieguangda
 * @Description:
 * @Date: 2023/9/15 17:06
 */
public class TestLazy {
    public static void main(String[] args) {
        ApplicationContext context = new AnnotationConfigApplicationContext(ConfigLazy.class);
        System.out.println("我再看看呢呢呢。。。。。没有使用对象");
        Father father = (Father) context.getBean("father");
        System.out.println("我来卡看看::" + father);
    }
}
